package com.ziyun.erp.modules.quotePrint.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.erp.modules.quotePrint.dao.QuotePrintDao;
import com.ziyun.erp.modules.quotePrint.entity.QuotePrintEntity;
import com.ziyun.erp.modules.quotePrint.service.QuotePrintService;


@Service("quotePrintService")
public class QuotePrintServiceImpl extends ServiceImpl<QuotePrintDao, QuotePrintEntity> implements QuotePrintService {

    @Autowired
    private QuotePrintDao quotePrintDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<QuotePrintEntity> page = this.selectPage(
                new Query<QuotePrintEntity>(params).getPage(),
                new EntityWrapper<QuotePrintEntity>()
        );

        return new PageUtils(page);
    }

    /**
     * 标记删除印刷机
     * @param ids
     */
    @Override
    public void flagDel(String ids) {
        quotePrintDao.flagDel(ids);
    }

}
